package com.lightjet.macross.base.awf.config;

import com.mongodb.MongoClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;
//@Configuration
public class MongodbTemplateConfig {
// 已失效

    @Bean
    public MongoTemplate mongoTemplate()
    {
        return new MongoTemplate(new MongoClient("10.122.128.183",27017),"awfp");
    }
}
